package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/3/30 11:29
 * Dest  失败
 */

public class FailureBean  implements Parcelable {

    /**
     * spec_info :
     * gsp : []
     * goodsId : 849
     * price : 40
     * cartId : 30
     * goodsimage : http://p35r91t1w.bkt.clouddn.com/upload/store/90/2018/03/02/a3fac8ac-edb1-4b5d-b6c6-265614ac5566.jpg
     * count : 1
     * isdis : 1
     * goodsname : 刘松大白菜
     * disprice : 20
     */

    private String spec_info;
    private int goodsId;
    private int price;
    private int cartId;
    private String goodsimage;
    private int count;
    private String isdis;
    private String goodsname;
    private  double disprice;
    public String getSpec_info() {
        return spec_info;
    }

    public void setSpec_info(String spec_info) {
        this.spec_info = spec_info;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public String getGoodsimage() {
        return goodsimage;
    }

    public void setGoodsimage(String goodsimage) {
        this.goodsimage = goodsimage;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getIsdis() {
        return isdis;
    }

    public void setIsdis(String isdis) {
        this.isdis = isdis;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public double getDisprice() {
        return disprice;
    }

    public void setDisprice(double disprice) {
        this.disprice = disprice;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.spec_info);
        dest.writeInt(this.goodsId);
        dest.writeInt(this.price);
        dest.writeInt(this.cartId);
        dest.writeString(this.goodsimage);
        dest.writeInt(this.count);
        dest.writeString(this.isdis);
        dest.writeString(this.goodsname);
        dest.writeDouble(this.disprice);
    }

    public FailureBean() {
    }

    protected FailureBean(Parcel in) {
        this.spec_info = in.readString();
        this.goodsId = in.readInt();
        this.price = in.readInt();
        this.cartId = in.readInt();
        this.goodsimage = in.readString();
        this.count = in.readInt();
        this.isdis = in.readString();
        this.goodsname = in.readString();
        this.disprice = in.readDouble();
    }

    public static final Parcelable.Creator<FailureBean> CREATOR = new Parcelable.Creator<FailureBean>() {
        @Override
        public FailureBean createFromParcel(Parcel source) {
            return new FailureBean(source);
        }

        @Override
        public FailureBean[] newArray(int size) {
            return new FailureBean[size];
        }
    };
}
